aux_source_directory(fault_check FAULT_SRCS)
aux_source_directory(msg_decode MSG_DECODE_SRCS)
aux_source_directory(user_run USER_CTRL_SRCS)

target_sources(
    ${PROJECT_NAME} PRIVATE 
    ${FAULT_SRCS}
    ${MSG_DECODE_SRCS}
    ${USER_CTRL_SRCS}
)

target_include_directories(
    ${PROJECT_NAME} PUBLIC 
    ${CMAKE_CURRENT_LIST_DIR}/fault_check
    ${CMAKE_CURRENT_LIST_DIR}/msg_decode
    ${CMAKE_CURRENT_LIST_DIR}/user_run
)